package tianrun.ziguan.api.forecast.base;


import tianrun.ziguan.api.forecast.exception.CommonErrorCode;
import tianrun.ziguan.api.forecast.util.ReturnMessage;

/**
 * @author yuanl
 * 单个实体返回
 */
public abstract class BaseReturnMessage extends ReturnMessage {

    public void success(){
        super.setMessage(CommonErrorCode.SUCCESS.getDescription());
        super.setResult("OK");
        super.setStatusCode(CommonErrorCode.SUCCESS.getCode());
    }

}
